package com.mall.commons.tool.utils;

import ch.qos.logback.core.joran.spi.NoAutoStart;
import org.redisson.api.RBucket;
import org.redisson.api.RBuckets;
import org.redisson.api.RMap;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Nullable;

public class RedisUtils {

    private RedisUtils() { }

    public static RMap redisOfGetMap(RedissonClient client, String key) {
        RMap<String, Object> map = client.getMap(key);
        return map;
    }
}
